﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DAO;
namespace BUS
{
    public class GopYBUS
    {
        public DataTable layThongTinGopY( string loaiThacMac,bool trangThai,string dieuKien, int kichThuocTrang, int trangThu)
        {
            GopYDAO dao = new GopYDAO();
            return dao.layThongTinGopY(loaiThacMac,trangThai,dieuKien,kichThuocTrang,trangThu);
        }
        public DataTable layThongTinGopY(string loaiThacMac, string dieuKien, int kichThuocTrang, int trangThu)
        {
            GopYDAO dao = new GopYDAO();
            return dao.layThongTinGopY(loaiThacMac, dieuKien, kichThuocTrang, trangThu);
        }
        public DataTable laySoDongGopY(string loaiThacMac, bool trangThai, string dieuKien)
        {
             GopYDAO dao = new GopYDAO();
             return dao.laySoDongGopY(loaiThacMac,trangThai,dieuKien);
        }
        public DataTable laySoDongGopY(string loaiThacMac, string dieuKien)
        {
            GopYDAO dao = new GopYDAO();
            return dao.laySoDongGopY(loaiThacMac,dieuKien);
        }
        public DataTable layChiTietThongTinGopY(string ID)
        {
             GopYDAO dao = new GopYDAO();
             return dao.layChiTietThongTinGopY(ID);
        }
        public int capNhatGopY(string maNhanVien, int ID)
        {
            GopYDAO dao = new GopYDAO();
            return dao.capNhatGopY(maNhanVien, ID);
        }
    }
}
